This guide serves as a note to self to remember how to install MATLAB on a WSL virtual machine.
Ubuntu 20.04 on WSL2, with Windows 10.
Preferred IPv4 DNS server 8.8.8.8
Alternate IPv4 DNS server 8.8.4.4
Preferred IPv6 DNS server 2001:4860:4860:8888
Alternate IPv6 DNS server 2001:4860:4860:0:0:0:0:8888
Preferred IPv6 DNS server 2001:4860:4860:8844
Alternate IPv6 DNS server 2001:4860:4860:0:0:0:0:8844
| // demonstrate advantages of moving task from view to loading state | |
| struct FeedView: View { | |
| @Environment(BlueSkyClient.self) private var client | |
| @Environment(AppTheme.self) private var theme | |
| enum ViewState { | |
| case loading | |
| case error(String) | |
| case loaded([Post]) |
Note
This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.
How to use this script:
Console tab| /* | |
| -Visit https://old.reddit.com/subreddits/ using your old account | |
| -Copy link address of "multireddit of your subscriptions" | |
| It will give you a link address like this: https://old.reddit.com/r/[subreddit1+subreddit2...+subredditN] | |
| Please note that if you have a lot of subreddits the link won't work because there's a limit to the link's length, you can simply split it to two or three links | |
| -Visit that link (or links) using your new account. | |
| -Open the console by pressing F12 and then clicking the console tab | |
| -Past the code bellow and press enter. You're welcome :) | |
| */ | |
| const sub = () => { |
| import { useForm } from "react-hook-form"; | |
| import { TextField } from "@mui/material"; | |
| import { zodResolver } from "@hookform/resolvers/zod"; | |
| import { schema, TSchema } from "./sampleSchema.ts"; | |
| import { makeIsRequired } from "./isRequired"; | |
| const isRequired = makeIsRequired(schema); | |
| export function UserForm() { |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| 6G5NXCPJZB-eyJsaWNlbnNlSWQiOiI2RzVOWENQSlpCIiwibGljZW5zZWVOYW1lIjoic2lnbnVwIH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